﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WeChatBotSDK.JsonEx;

namespace WeChatBotSDK.Models.EventCallback
{
    /// <summary>
    /// 表示注入成功事件的数据
    /// </summary>
    public record InjectionSuccessEventData: IWeChatEventData
    {
        /// <summary>
        /// 监听端口
        /// </summary>
        [JsonConverter(typeof(IntConverter))]
        [JsonPropertyName("port")]
        public int Port { get; set; }

        /// <summary>
        /// 进程 PID
        /// </summary>
        [JsonConverter(typeof(IntConverter))]
        [JsonPropertyName("pid")]
        public int PID { get; set; }
    }
}
